/*==============================================================================
FILE NAME: 01_setup.do
PURPOSE: This .do file creates all of the global paths and downloads all of the packages used in the replication.
that will be used in the programs.
CREATED: 13 June 2025
UPDATED: 24 July 2025
==============================================================================*/

/* Set directory if working independently through code
if c(username)=="" { //insert username
	global rootdir "" // insert root path*/

// Create global directories
global processed_data "$rootdir/processed_data"
global raw_data "$rootdir/raw_data"
global code "$rootdir/code"
global output "$rootdir/output"
global figures "$output/figures"
global tables "$output/tables"
global point_estimates "$figures/point_estimates"

// Download stata packages. Update this code with additional packages if needed
// Define the list of packages to install
local packages "reghdfe ftools unique coefplot estout distinct regsave"

// Loop through the list
foreach package of local packages {
	ssc install `package', replace
}

